﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportStudentLoginInfo.aspx.cs" Inherits="E.Web.Teacher.report.study.ReportStudentLoginInfo" %>

<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>学生登录情统计况报表</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/student.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/flora.datepick.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick.min.js"></script>
  <script type="text/javascript" src="/js/jquery.datepick-zh-CN.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript">
        $(document).ready(
            function () {
                $("#FromDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
                $("#ToDateTxt").datepick({ dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: '/images/icon/calendar-green.gif', buttonImageOnly: true });
            }
        );

      function download() {
          document.forms[0].action = "?act=d";
          document.forms[0].submit();
      }
  </script>
    <style type="text/css">
        .style1
        {
            height: 20px;
            width: 135px;
        }
        .style3
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 156px;
        }
        .style4
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 114px;
        }
        .style6
        {
            height: 20px;
            width: 114px;
        }
        .style7
        {
            height: 20px;
            width: 177px;
        }
        .style8
        {
            border: solid 1px #9C9A9C;
            background-color: #EFEFEF;
            text-align: center;
            font-size: 10pt;
            vertical-align: middle;
            height: 20px;
            width: 177px;
        }
    </style>
</head>
<body>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;学生登录情统计况报表</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">开始时间：</div>
        <div class="fl">          
          <input type="text" id="FromDateTxt" name="FromDateTxt" />
        </div>
        
        <div class="fl" style="line-height:23px;">&nbsp;&nbsp;结束时间：</div>
        <div class="fl">          
          <input type="text" id="ToDateTxt" name="ToDateTxt" />
        </div>
      </div>
      <div style="height: 25px">
        <div class="fl">
            <input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" />
            <input type="image" style="width:54px; height:23px;" src="/images/btn/export.gif" onclick="download();" />
        </div>
      </div>
    </div>
    
    <div style="margin:10px 0 0 30px; width:789px; display:table;height: 130px;">
      <div style="width:781px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (staticsList != null && staticsList.Count > 0)
       { %>
    
      <div style=" width:786px; display:table;height: 112px;">
        <table>
            <tr>
                <td style="border:solid 1px #9C9A9C;background-color:#EFEFEF;text-align:center;font-size:10pt;vertical-align:middle;" class="style1">学生登录账号</td>
                <td class="style3">学生姓名</td>
                <td class="style4">登录系统次数</td>
                <td class="style8">最后一次登录系统时间</td>
            </tr>
        
        <% foreach (ReportStudyInfoModel model in staticsList)
           { %>
           <tr>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.LoginID %></td>
                <td style="border:solid 1px #9C9A9C;height:20px;font-size:9pt;"><%=model.UserName %></td>
                <td style="border:solid 1px #9C9A9C;font-size:9pt;" class="style6"><%=model.TotalLoginCount %></td>
                <td style="border:solid 1px #9C9A9C;font-size:9pt;" class="style7"><%=model.LastLoginTime%></td>

           </tr>
        <% } %>
        </table>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% } else { %>
    <% } %>
    
    </div>
  </form>
</body>
</html>
